package com.prjsystem.dao.impl;

import java.util.List;


import com.prjsystem.dao.BaseDao;
import com.prjsystem.dao.CVSViewDao;
import com.prjsystem.entity.CVSBean;
import com.prjsystem.entity.CVSDetail;

public class CVSViewDaoImpl extends BaseDao implements CVSViewDao{

	
	@SuppressWarnings("unchecked")
	public List<CVSDetail> searchCvs(CVSBean cvsBean) {
		return excuteQueryForList("CVS.searchCvsInfo",cvsBean);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<CVSDetail> searchCvsInfoByCvsId(CVSBean cvsBean) {
		
		return excuteQueryForList("CVS.searchCvsInfoBeforeUpdate",cvsBean);
	}
	
	@Override
	public void deleteCVS(String cvsId) {
		excuteDelete("CVS.deleteCVS", cvsId);
	}

}
